package com.yzy.controller;

import java.text.CollationKey;
import java.text.Collator;

/**
 * @author yangzhenyu
 * @version 1.0
 * @description:
 * @date 2022/7/13 17:13
 */
public class Test6 {
    public static void main(String[] args) {
        Collator collator = Collator.getInstance();
//        CollationKey[] keys = new CollationKey[3];
//        keys[0] = collator.getCollationKey("1222");
//        keys[1] = collator.getCollationKey("22");
//        keys[2] = collator.getCollationKey("1223");
//        sort(keys);
        long a = 123L;
        long b = 232L;
        //比较
        if (collator.compare(a,b)<0){
            //
            System.out.printf(a+"小于"+b);
        }else {
            System.out.printf(a+"大于等于"+b);

        }

    }
}
